﻿using System;

namespace Meqs.Entity
{
    [Serializable]
    public class StuCauseEvalRemark
    {
        private int _rID;
        private int _record;
        private int _studentID;
        private string _data;

        public StuCauseEvalRemark()
        {
        }

        public StuCauseEvalRemark(int rID, int record, int studentID, string data)
        {
            _rID = rID;
            _record = record;
            _studentID = studentID;
            _data = data;
        }

        public int RID
        {
            get { return _rID; }
            set { _rID = value; }
        }

        public int RecordID
        {
            get { return _record; }
            set { _record = value; }
        }

        public int StudentID
        {
            get { return _studentID; }
            set { _studentID = value; }
        }

        public string Data
        {
            get { return _data; }
            set { _data = value; }
        }

        public bool Equals(StuCauseEvalRemark other)
        {
            if (ReferenceEquals(null, other)) return false;
            if (ReferenceEquals(this, other)) return true;
            return other._rID == _rID;
        }

        public override bool Equals(object obj)
        {
            if (ReferenceEquals(null, obj)) return false;
            if (ReferenceEquals(this, obj)) return true;
            if (obj.GetType() != typeof(StuCauseEvalRemark)) return false;
            return Equals((StuCauseEvalRemark)obj);
        }

        public override int GetHashCode()
        {
            return _rID;
        }
    }
}
